{extend name="index_layout"/}
{block name="main"}
<div class="layui-card layer-popup">
    <div class="layui-card-body">
        <div class="admin-main layui-anim layui-anim-upbit">

            <form class="layui-form layui-form-pane" lay-filter="form">
                <div class="layui-form-item">
                    <label class="layui-form-label">分组名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" lay-verify="required" placeholder="{:lang('pleaseEnter')}等级名" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        在4到25个字符之间。
                    </div>
                </div>



                <div class="layui-form-item">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-inline">
                        <input type="text" name="description" value="" placeholder="{:lang('pleaseEnter')}描述"  class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        分组描述
                    </div>
                </div>


                <div class="layui-form-item" pane>
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="status" lay-filter="status" checked value="1" title="开启">
                        <input type="radio" name="status" lay-filter="status" value="0" title="关闭">
                    </div>

                </div>

                <div class="layui-form-item layer-footer">
                    <div>
                        <input type="hidden" name="id">
                        <button type="button" class="layui-btn" lay-submit="" lay-filter="submit"><i class="layui-icon layui-icon-form"></i> {:lang('submit')}</button>
                        <button type="reset" class="layui-btn layui-btn-primary"> <i class="layui-icon layui-icon-delete"></i>{:lang('reset')}</button>
                    </div>
                </div>
            </form>
        </div>

    </div>
</div>
{/block}
{block name="script"}
<script>
    layui.use(['Admin','laydate','form'], function() {
        var form = layui.form,
            layer = layui.layer,
            $= layui.jquery;
        var info = '';
        info = {:json_encode($info)};
        form.val("form", info);
        if(info){
            $('#addPic').attr('src',info.avatar);
        }
        form.render();

    });
</script>
{/block}